module.exports = {
  lintOnSave: false,
  chainWebpack: config => {
  	//xlsx-style不生效替换代码
  	config.externals({
  		"./cptable": "var cptable"
  	}); 
  },
  devServer: {
      host: "0.0.0.0",
    	port: 8080, // 端口号
    	https: false, // https:{type:Boolean}
    	open: true, //配置自动启动浏览器
    	proxy: {
    		'/admin': { //代理api
				target: 'http://192.168.0.0/canyinpc',//服务器api地址
    			ws: true,// proxy websockets
    			changeOrigin: true,//是否跨域
    			pathRewrite: { //重写路径
    				'^/admin': ''
    			}
    		}
    	}
    }
}